package com.day15.ex11;

import java.util.ArrayList;
import java.util.List;

public class GenericDemo {
    public static void main(String[] args) {
        List<?>list1=new ArrayList<Object>();
        List<?>list2=new ArrayList<Number>();
        List<?>list3=new ArrayList<Integer>();
        System.out.println("--------");
        List<? extends Number>list5=new ArrayList<Number>();
        List<? extends Number>list6=new ArrayList<Integer>();
        System.out.println("--------");
        List<? super Number>list7=new ArrayList<Object>();
        List<? super Number>list8=new ArrayList<Number>();
        System.out.println("--------");
    }
}
